package spring;


import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

@Component
public class UserService implements BeanNameAware {

    @Override
    public void setBeanName(String name) {
        System.out.println("UserService" + name);
    }
}
